package com.wdh.cloud.api.client;

import com.wdh.cloud.domain.order.OrderEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "order-svc")
public interface OrderClient {

    @RequestMapping("/order/getById/{id}")
    OrderEntity getById(@PathVariable(value = "id") Integer id);
}
